import { useRouter } from "next/router";
const PostComment = ()=>{
    const router = useRouter();
    const { pid,comment } = router.query;
    return <p>pid:{pid},comment:{comment}</p>
}
export default PostComment